all:test_scanner

test_scanner : test_scanner.o ../lib/protocol.o ../lib/async_module_stats.o ../lib/basic_location_cache.o ../common/logger.o
	g++ -o $@ $^ -lboost_system -lboost_thread -lpthread -llog4cplus -Wall -ggdb -pg -O2

%.o:%.cpp
	g++ -c -o $@ $< -I../common -I../lib -Wall -Wno-deprecated -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS -ggdb -pg -O2

clean:
	rm -rf test_scanner test_scanner.o
